﻿using System;
using System.Drawing;

namespace NGridDrawer.Partitions
{
    /// <LastUpdate author="Blaise Braye" Date="29/07/2008 17:01"/>
    /// <summary>
    /// 	<see cref="T:NGridDrawer.Partitions.ElementDrawnEventArgs"/> 
    /// contains data for the ElementDrawn and ElementDrawing events.</summary>
    public class ElementDrawnEventArgs : EventArgs
    {
        /// <summary>
        /// 	<para>Initializes an instance of the <see cref="ElementDrawnEventArgs"/> class.</para>
        /// </summary>
        /// <param name="graphic">graphics used to draw</param>
        /// <param name="bounds">drawing area of the element drawn in the <paramref name="graphic"/>
        /// </param>
        public ElementDrawnEventArgs(Graphics graphic, RectangleF bounds)
        {
            Graphic = graphic;
            Bounds = bounds;
        }

        /// <summary>
        /// 	<para>Initializes an instance of the <see cref="ElementDrawnEventArgs"/> class.</para>
        /// </summary>
        /// <param name="graphic">graphics used to draw</param>
        public ElementDrawnEventArgs(Graphics graphic)
        {
            Graphic = graphic;
        }

        /// <summary>Get/Set Graphic Property</summary>
        public Graphics Graphic { get; set; }

        /// <summary>Get/Set Bounds Property</summary>
        public RectangleF Bounds { get; set; }
    }

}